import request from "@/utils/request";
import { stringify } from 'qs';

export function getArticle(id) {
    return request({
      url: `/my/article/article?${stringify(id)}`,
      method: "get",
    })
};

export function addArticle(data) {
    return request({
      url: "/my/article/add",
      method: "post",
      data: data,
    })
}

export function delArticle(data) {
    return request({
      url: "/my/article/del",
      method: "post",
      data: data,
    })
}

export function editArticle(data) {
    return request({
      url: "/my/article/edit",
      method: "post",
      data: data,
    })
}